﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Test1.IRepositorys;
using Test1.Models;
using System.Data.Linq;
namespace Test1.Repositorys
{
    public class T_UserRepository:Repository<T_User>,IT_UserRepository
    {
        public T_UserRepository(DataContext dc)
            : base(dc)
        {
        }
        public IList<T_User> GetAllUserById(int id)
        {
            var listuser = from u in context.GetTable<T_User>()
                           where u.id == id
                           select u;
            return listuser.ToList();
        }

    }
}